<?php

declare(strict_types=1);

namespace App\Task;

use Hyperf\Crontab\Annotation\Crontab;
use App\Exception\ApiException;
use App\Constants\ErrorCode;
use App\Job\TestJob;

class TestTask
{
    /**
     * @Crontab(rule="* * * * *", memo="test")
     */
    public function test()
    {
        $params['id'] = 1;
        queue_push(new TestJob($params), 2);
    }

}
